//
//  RightBarButtonItem.m
//  One
//
//  Created by mac on 16/5/25.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "RightBarButtonItem.h"

@implementation RightBarButtonItem

- (id)init
{
    self = [super init];
    if (self) {
        
        UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
        [button setImage:[UIImage imageNamed:@"nav_me_default_22x24_"] forState:UIControlStateNormal];
        button.frame = CGRectMake(0, 0, 22, 24);
        
        [button addTarget:self action:@selector(userView) forControlEvents:UIControlEventTouchUpInside];
        
        
        self.customView =button;
        
    }
    return self;
}
-(void)userView
{
    
    NSLog(@"456");
}


@end
